FROM alpine:3.17
ADD pubyun.sh /root/
RUN chmod +x /root/pubyun.sh
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
RUN apk add curl
RUN touch /root/log
RUN echo "*/5 * * * * /root/pubyun.sh > /root/log 2>&1" >> /var/spool/cron/crontabs/root
ENV DOMAIN 'pubyun.com'
ENV USERNAME 'pubyun'
ENV PASSWORD 'pubyun'
CMD crond && tail -f /root/log